#ifndef _TEXT_H_
#define _TEXT_H_
#include<windows.h>
#include<d3d9.h>
#include<d3dx9.h>
#include"Sprite.h"
class CText
{
	int x;
	int y;
	int width;
	int height;
	//int Array[10];
	int n;
	LPDIRECT3DTEXTURE9 image;
	CSprite *text;
	//LPDIRECT3DTEXTURE9 *Array;
	LPDIRECT3DTEXTURE9 info;
	LPDIRECT3DTEXTURE9 world;
	LPDIRECT3DTEXTURE9 time;
	LPDIRECT3DTEXTURE9 player;
	LPDIRECT3DTEXTURE9 _player;
	LPDIRECT3DTEXTURE9 save;
	LPDIRECT3DTEXTURE9 load;
	LPDIRECT3DTEXTURE9 resume;
	LPDIRECT3DTEXTURE9 exit;
	LPDIRECT3DTEXTURE9 gameover;	
public:
	CText();
	~CText();
	void GetDicision(bool isMenu);
	void LoadResources(LPDIRECT3DDEVICE9 d3ddv);
	LPDIRECT3DTEXTURE9 GetImage(LPDIRECT3DDEVICE9 d3ddv,LPWSTR filename);
	void Render(LPDIRECT3DDEVICE9 d3ddv,LPD3DXSPRITE sprite,bool isMenu,int stage);
	void RenderIntro(LPD3DXSPRITE sprite);
	void RenderGameOver(LPD3DXSPRITE sprite);
};
#endif